Configuring Context Menus

The following configuration dialog box allows a screen builder to create, name and edit the context menu options for each menu item to be displayed on the right-click menu. The examples shown below are common to both Standard context menus and Custom context menus, although the menu item options differ.

Standard Context Menu Configuration

Standard Context Menu Configuration

 

Custom Context Menu Configuration

Custom Context Menu Configuration (Event Summary Control)

Property Description

Menu Items

Items that will be added at the bottom of the context menu in runtime in CygNet Studio.

Add

Adds a new menu item to the list to be added to the runtime right-click context menu.

Remove

Removes an item from the Menu Items list and the runtime right-click context menu.

Menu Item Properties

Item Text

Enter the name to be displayed in the runtime right-click menu.

Event ID

Specifies the Event ID that will be called when the item is selected from the runtime right-click context menu.

See Standard Context Menus or Custom Context Menus for more information about this property.

Disable check boxes

Different options are available depending on the type of control being configured.

Standard context menu (e.g. TheFrame/TheView, Text, Button, etc.)
  • Disable on Invalid Tag — Disables the menu item if the associated point is an invalid tag string for the item selected in the control

  • Disable Always — Always disable the menu item for the item selected in the control

Custom context menu

Overriding Context Menu Items

You can override the following standard CygNet context menu items using the listed CygNet Menu IDs:

Context Menu Item Associated CygNet Menu IDs Actual Menu Text (depends on usage)

Acknowledge Alarm

CYG_ALARMACK

Acknowledge Alarm

Acknowledge the Current Alarm

Command Info…

CYG_EDITCOMMANDINFO

Command Info…

Edit the command info

Command State…

CYG_COMMANDSTATE

Command State…

View the command state

Configuration…

CYG_VIEWCONFIG

Configuration…

View Current Configuration

Current Value…

CYG_PROPERTIES

Current Value…

Show current value

Facility Configuration

CYG_TOOLFACILITY

Facility Configuration

Facility Configuration...

CYG_VIEWFACILITY

Facility Configuration…

History Arrow

 

Alarm History

CYG_HIST_ALARM

Alarm History

View alarm history

History Values

CYG_HIST_VAL

History Values

View alarm history

Point Configuration Arrow

 

Alarm Settings…

CYG_ALARMSETTINGS

Alarm Settings…

View/Edit Alarm settings…

Alarm Suppression…

CYG_ALARMSUPPRESSION

Alarm Suppression…

View/edit Alarm Suppression…

All Settings…

CYG_POINTCONFIG

All Settings…

Edit All…

Comments…

CYG_COMMENT

Comments…

View/Edit Comments…

Questionable State…

CYG_QUESTIONABLE

Questionable State…

View/Edit Questionable Flag…

Point List…

CYG_POINTLIST

Point List…

View point list

SetPoint Configuration

CYG_SETPOINTCONFIG

SetPoint Configuration…

View the SetPoint configuration

Show History Playback Bar

CYG_HISTORYPLAYBACKBAR

Show History Playback Bar

Tool Configuration…

CYG_TOOLCONFIG

Tool Configuration…

View the Tool Configuration…

Trend Arrow

 

Add to Default Trend

CYG_ADDTODEFAULTTREND

Add to Default Trend

Add this point to the default trend

Remove from Default Trend

CYG_REMOVEFROMDEFAULTTREND

Remove from Default Trend

Remove this point from the default trend

Single Point

CYG_SINGLEPOINT

Show Single Point Trend

Single Point

Single Point with Rollups

CYG_SINGLEPOINTROLLUP

Show Single Point Trend with Rollups

Single Point With Rollups

Update Rate

CYG_UPDATERATE

Change the View Update Rate

Change Update Rate

View Trend

CYG_TREND

View Trend

View the default trend for this view

To remove a menu item from a context menu, you must use script, for example:

Copy
Remove a menu item
Sub TheView_EventInitialize()
Dim This : Set This = TheView
    This.RemoveObjectMenuItem "CYG_ALARMSUPPRESSION"
End Sub

Back to top